package study.cycleTest;

import netscape.javascript.JSObject;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @author: chengchao
 * @description:
 * @date: create in 2021/9/16
 **/
@Component
//@Scope("prototype")
public class CycleB implements InitializingBean {

    public CycleB() {
        System.out.println("cycleB is Constructor");
    }

    public void afterPropertiesSet() throws Exception {
        System.out.println("cycleB 初始化完成"+cycleA);
    }

    @Autowired
    private CycleA cycleA;
}
